function info_display(handles, filename)
%read dicom display the image and the key infomation

info = dicominfo(filename);
[img, map] = dicomread(info);
axes(handles.axes1);
imshow(img, map);

static_thickness = 'slice thickness: ';
thickness = num2str(info.SliceThickness);


spacing = info.PixelSpacing;


static_width = 'width: ';
width = num2str(info.Width);

static_height = 'height: ';
height = num2str(info.Height);

static_id = 'instance number: ';
id = info.InstanceNumber;

set(handles.text3, 'String', [static_thickness, thickness]);
set(handles.text5, 'String', [static_width, width]);
set(handles.text6, 'String', [static_height, height]);
set(handles.text2, 'String', [static_id, num2str(id)]);
set(handles.text7, 'String', num2str(spacing(1)));
set(handles.text8, 'String', num2str(spacing(2)));